<?php
include('header.php');
?>
<script>
$(".collection").css({'background-color':'#f7f7f7', 'color': '#222222'});
$.getJSON('controllers/collection_controller.php', function(data) {
	
	$.each(data.art, function(i,data) {
		var div_data = "<li id='artpiece'> <a href='controllers/detailed_art_controller.php?id="+data.id+"'><img class='imgArt' id='"+data.id+"' src='"+data.thumbnail+"'/></a> </li>";

		$("#art").append(div_data);
	});
});
</script>
	<div style="width:600px; margin: 0px auto 0px auto;">
	<ul id="art">
	
	</ul>
	</div>
<?php
include('footer.php');
?>